package com.pojoin.cms.face;

import com.pojoin.cms.exception.CmsException;

public class ResourceFaceFactory extends BaseFaceFactory {

	/**
	 * 根据id获取对象
	 * @param resourceId
	 * @return
	 * @throws CmsException 
	 */
	public ResourceFace getResourceFaceById(Long resourceId) throws CmsException {
		ResourceFaceLocal rfl = new ResourceFaceLocal();
		rfl.setResourceDao(this.getDaoServer().getResourceDao());
		rfl.setResourceId(resourceId);
		rfl.reload();
		return rfl;
	}
	
}
